const baseUrl = 'https://warmchild.szyoubianli.com';


const request=(params)=>{
	
	return new Promise((resolve,reject)=>{
		uni.request({
			...params,
			url:baseUrl+params.url,
			success:(res)=>{
				resolve(res)
			},
			fail:(err)=>{
				reject(err)
			}
		})
	})
}









export{
	request
}
